<template>
  <div :style="{ color: color }">
    孙子组件
    {{ moneySon }}
  </div>
</template>

<script setup>
import { inject } from 'vue'

const moneySon = inject('money')
const color = inject('color')
</script>
